package com.whfc.fim.dao;

import com.whfc.fim.entity.FimWarnRuleChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author : qzexing
* @version : 1.0
* @date : 2020-09-08 18:38
*/

public interface FimWarnRuleChannelMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FimWarnRuleChannel record);

    int insertSelective(FimWarnRuleChannel record);

    FimWarnRuleChannel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FimWarnRuleChannel record);

    int updateByPrimaryKey(FimWarnRuleChannel record);

    /**
     * 根据报警规则删除
     *
     * @param warnRuleId
     */
    int deleteByWarnRuleId(@Param("warnRuleId") Integer warnRuleId);

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int batchInsert(@Param("list") List<FimWarnRuleChannel> list);

    /**
     * 查询消息发送方式
     *
     * @param id
     * @return
     */
    List<Integer> selectMsgChannelByWarnRuleId(@Param("warnRuleId") Integer id);
}